/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: Test
 * Author:   步步为莹
 * Date:     2019/9/3 23:36
 * Description: d
 * History:
 */
package cn.beyond.vehicleManagement.util;

import cn.beyond.vehicleManagement.pojo.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 〈d〉<br> 
 * 〈一句话功能简述〉
 *
 * @author 步步为莹
 * @create 2019/9/3
 * @since 1.0.0
 */
public class Test {
    public static void main(String[] args) {
       // SysRole sysRole=new SysRole(7,"1223",0,"会计",new Date());
        SysUser sysUser=new SysUser();
        DataBaseUtil<SysMenu> d=new DataBaseUtil();
        Map<String ,Object>selectmp=new HashMap<>();
        selectmp.put("id",3);
        selectmp.put("login_name","yx");
        String sql=d.getSelectSQL(sysUser,selectmp);
        System.out.println(sql);

    List<SysUser> sysRoleList=d.selectAll(sysUser,"sys_user",selectmp);
      System.out.println(sysRoleList.size());
      for(SysUser sysUser1:sysRoleList){
          System.out.println(sysUser1);
      }
        System.out.println("+++++++++测试++++++++++");


        SysUser user=new SysUser();

//        BaseDao dao = new BaseDao();
//       ResultSet rs= dao.executeQuery(sql);
        // System.out.println(rs);
        // List<SysUser>userList = (List<SysUser>) ResultUtil.resultToList(rs,user);
//        SysUser sysUser=ResultUtil.resultToObject(rs,user);
//        System.out.println(sysUser);
//        for (SysUser users:userList){
//            System.out.println(users);
//        }
    }
}